home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / mc / syntax / lua.syntax < prev    next >
Text File  |  2009-10-25  |  6KB  |  225 lines

  1. #
  2. # LUA Scripting Language syntax highlight
  3. # // Mike Gorchak <lestat@i.com.ua>
  4. #
  5.  
  6. context default lightgray
  7.  
  8. # keywords
  9.     keyword whole and white
  10.     keyword whole break white
  11.     keyword whole do white
  12.     keyword whole else white
  13.     keyword whole elseif white
  14.     keyword whole end white
  15.     keyword whole false white
  16.     keyword whole for white
  17.     keyword whole function white
  18.     keyword whole if white
  19.     keyword whole in white
  20.     keyword whole local white
  21.     keyword whole nil white
  22.     keyword whole not white
  23.     keyword whole or white
  24.     keyword whole repeat white
  25.     keyword whole return white
  26.     keyword whole then white
  27.     keyword whole true white
  28.     keyword whole until white
  29.     keyword whole while white
  30.  
  31. # Comments
  32.     keyword -- brown
  33.     keyword ]] brown
  34.  
  35. # Operators
  36.     keyword ( white
  37.     keyword ) white
  38.     keyword { white
  39.     keyword } white
  40.     keyword [ white
  41.     keyword ] white
  42.     keyword . white
  43.     keyword , white
  44.     keyword ; white
  45.     keyword : white
  46.     keyword .. white
  47.     keyword ... white
  48.     keyword = white
  49.     keyword == white
  50.     keyword ~= white
  51.     keyword <= white
  52.     keyword => white
  53.     keyword > white
  54.     keyword < white
  55.     keyword \+ white
  56.     keyword - white
  57.     keyword \* white
  58.     keyword / white
  59.     keyword ^ white
  60.  
  61.  
  62. # Library Functions
  63.     # basiclib
  64.     keyword whole error yellow
  65.     keyword whole getmetatable yellow
  66.     keyword whole setmetatable yellow
  67.     keyword whole getfenv yellow
  68.     keyword whole setfenv yellow
  69.     keyword whole next yellow
  70.     keyword whole ipairs yellow
  71.     keyword whole pairs yellow
  72.     keyword whole print yellow
  73.     keyword whole tonumber yellow
  74.     keyword whole tostring yellow
  75.     keyword whole type yellow
  76.     keyword whole assert yellow
  77.     keyword whole unpack yellow
  78.     keyword whole rawequal yellow
  79.     keyword whole rawget yellow
  80.     keyword whole rawset yellow
  81.     keyword whole pcall yellow
  82.     keyword whole xpcall yellow
  83.     keyword whole collectgarbage yellow
  84.     keyword whole gcinfo yellow
  85.     keyword whole loadfile yellow
  86.     keyword whole dofile yellow
  87.     keyword whole loadstring yellow
  88.     keyword whole require yellow
  89.     keyword whole coroutine.create yellow
  90.     keyword whole coroutine.wrap yellow
  91.     keyword whole coroutine.resume yellow
  92.     keyword whole coroutine.yield yellow
  93.     keyword whole coroutine.status yellow
  94.  
  95.     # stringlib
  96.     keyword whole string.len yellow
  97.     keyword whole string.sub yellow
  98.     keyword whole string.lower yellow
  99.     keyword whole string.upper yellow
  100.     keyword whole string.char yellow
  101.     keyword whole string.rep yellow
  102.     keyword whole string.byte yellow
  103.     keyword whole string.format yellow
  104.     keyword whole string.dump yellow
  105.     keyword whole string.find yellow
  106.     keyword whole string.gfind yellow
  107.     keyword whole string.gsub yellow
  108.  
  109.     # tablelib
  110.     keyword whole table.concat yellow
  111.     keyword whole table.foreach yellow
  112.     keyword whole table.foreachi yellow
  113.     keyword whole table.getn yellow
  114.     keyword whole table.setn yellow
  115.     keyword whole table.sort yellow
  116.     keyword whole table.insert yellow
  117.     keyword whole table.remove yellow
  118.  
  119.     # mathlib
  120.     keyword whole math.abs yellow
  121.     keyword whole math.sin yellow
  122.     keyword whole math.cos yellow
  123.     keyword whole math.tan yellow
  124.     keyword whole math.asin yellow
  125.     keyword whole math.acos yellow
  126.     keyword whole math.atan yellow
  127.     keyword whole math.atan2 yellow
  128.     keyword whole math.ceil yellow
  129.     keyword whole math.floor yellow
  130.     keyword whole math.mod yellow
  131.     keyword whole math.frexp yellow
  132.     keyword whole math.ldexp yellow
  133.     keyword whole math.sqrt yellow
  134.     keyword whole math.min yellow
  135.     keyword whole math.max yellow
  136.     keyword whole math.log yellow
  137.     keyword whole math.log10 yellow
  138.     keyword whole math.exp yellow
  139.     keyword whole math.deg yellow
  140.     keyword whole math.pow yellow
  141.     keyword whole math.rad yellow
  142.     keyword whole math.random yellow
  143.     keyword whole math.randomseed yellow
  144.  
  145.     # iolib
  146.     keyword whole io.input yellow
  147.     keyword whole io.output yellow
  148.     keyword whole io.lines yellow
  149.     keyword whole io.close yellow
  150.     keyword whole io.flush yellow
  151.     keyword whole io.open yellow
  152.     keyword whole io.popen yellow
  153.     keyword whole io.read yellow
  154.     keyword whole io.tmpfile yellow
  155.     keyword whole io.type yellow
  156.     keyword whole io.write yellow
  157.     
  158.     # filelib
  159.     keyword whole file.flush yellow
  160.     keyword whole file.read yellow
  161.     keyword whole file.lines yellow
  162.     keyword whole file.seek yellow
  163.     keyword whole file.write yellow
  164.     keyword whole file.close yellow
  165.     keyword whole file.__gc yellow
  166.     keyword whole file.__tostring yellow
  167.  
  168.     # syslib
  169.     keyword whole os.clock yellow
  170.     keyword whole os.date yellow
  171.     keyword whole os.difftime yellow
  172.     keyword whole os.execute yellow
  173.     keyword whole os.exit yellow
  174.     keyword whole os.getenv yellow
  175.     keyword whole os.remove yellow
  176.     keyword whole os.rename yellow
  177.     keyword whole os.setlocale yellow
  178.     keyword whole os.time yellow
  179.     keyword whole os.tmpname yellow
  180.  
  181.     # debuglib
  182.     keyword whole debug.getlocal yellow
  183.     keyword whole debug.getinfo yellow
  184.     keyword whole debug.gethook yellow
  185.     keyword whole debug.getupvalue yellow
  186.     keyword whole debug.sethook yellow
  187.     keyword whole debug.setlocal yellow
  188.     keyword whole debug.setupvalue yellow
  189.     keyword whole debug.debug yellow
  190.     keyword whole debug.traceback yellow
  191.  
  192.  
  193. # Global Variables
  194.     keyword whole _VERSION brightmagenta
  195.     keyword whole _G brightmagenta
  196.  
  197.  
  198. # Comments
  199. context exclusive --[[ ]] brown
  200.     spellcheck
  201.  
  202. context exclusive -- \n brown
  203.     spellcheck
  204.  
  205. context linestart # \n brown
  206.  
  207. # Strings
  208. context " " brightgreen
  209.     # can't find good color for the patterns highlight.
  210.     keyword %a brightgreen
  211.     keyword %c brightgreen
  212.     keyword %d brightgreen
  213.     keyword %l brightgreen
  214.     keyword %p brightgreen
  215.     keyword %s brightgreen
  216.     keyword %u brightgreen
  217.     keyword %w brightgreen
  218.     keyword %x brightgreen
  219.     keyword %z brightgreen
  220.     keyword \\" brightgreen
  221.     spellcheck
  222.  
  223. context ' ' brightgreen
  224.     spellcheck
  225.